package Huawei;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class HJ13句子逆序 {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String value = br.readLine();
        String[] values = value.split(" ");
        StringBuilder sb = new StringBuilder();
        for (int i = 1; i <= values.length; i++) {
            sb.append(values[values.length - i] + " ");
        }
        System.out.println(sb.toString());
        br.close();
    }
}
